package com.hu.video.service.impl;

import com.hu.video.entity.dto.VideoHotRankDTO;
import com.hu.video.mapper.VideoHotRankMapper;
import com.hu.video.service.Ranking.IVideoHotRankService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

@Service
public class VideoHotRankServiceImpl implements IVideoHotRankService {
    @Autowired
    private VideoHotRankMapper videoHotRankMapper;

    @Override
    public List<VideoHotRankDTO> getHotRankList(String sortType, int limit) {
        return videoHotRankMapper.selectHotRankList(sortType, limit);
    }
}